package com.lzh.walletdemo.entity;

import java.math.BigDecimal;

public class UserWallet {
    private int wallet_id;//钱包id
    private BigDecimal wallet_balance;//钱包余额
    private UserInfo user_id;//用户外键

    public UserWallet() {
    }

    public UserWallet(int wallet_id, BigDecimal wallet_balance, UserInfo user_id) {
        this.wallet_id = wallet_id;
        this.wallet_balance = wallet_balance;
        this.user_id = user_id;
    }

    public int getWallet_id() {
        return wallet_id;
    }

    public void setWallet_id(int wallet_id) {
        this.wallet_id = wallet_id;
    }

    public BigDecimal getWallet_balance() {
        return wallet_balance;
    }

    public void setWallet_balance(BigDecimal wallet_balance) {
        this.wallet_balance = wallet_balance;
    }

    public UserInfo getUser_id() {
        return user_id;
    }

    public void setUser_id(UserInfo user_id) {
        this.user_id = user_id;
    }

    @Override
    public String toString() {
        return "UserWallet{" +
                "wallet_id=" + wallet_id +
                ", wallet_balance=" + wallet_balance +
                ", user_id=" + user_id +
                '}';
    }
}
